package edu.njust.cma.mapper;

import edu.njust.cma.pojo.SubtaskEquipment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SubtaskEquipmentMapper {

    @Select("select * from subtasks_equipment where task_id=#{taskId}")
    List<SubtaskEquipment> getSubtaskEquipment(Integer taskId);

    @Select("insert into subtasks_equipment(task_id,equipment_id) " +
            "values(#{taskId},#{equipmentId})")
    void insert(SubtaskEquipment subtaskEquipment);



}
